﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftMenuSelector.aspx.cs"
    Inherits="demo.Pages.LeftMenuSelector" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <page:ObjectHierarchicalDataSource ID="ObjectHierarchicalDataSource1" runat="server"
        TypeName="demo.Objects.BLL.Menu" DataIDField="menuid" DataParentIDField="parentid"
        RootParentID="0">
    </page:ObjectHierarchicalDataSource>
    <div>
        <page:TreeView ID="TreeView1" runat="server" DataSourceID="ObjectHierarchicalDataSource1"
            ExpandDepth="1" ImageSet="Arrows" AutoGenerateDataBindings="False" OnTreeNodeDataBound="TreeView1_TreeNodeDataBound">
            <DataBindings>
                <asp:TreeNodeBinding TextField="text" PopulateOnDemand="true" ToolTipField="tooltip"  ImageToolTipField="imagetooltip" />
            </DataBindings>
        </page:TreeView>
    </div>
    </form>
</body>
</html>
